package com.restaurant.application.scoreset;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.StringData;
import com.nebutown.generation.basictype.UIDLists;

public class ScoreSetDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(ScoreSet.class, "ScoreSetData");

        desc.nextBean("ScoreSetData")
                .add("lists", UIDLists.class)
        ;

        desc.nextBean("ScoreSetPageData")
                .add("shopId", String.class)
                .add("shopName", String.class)
                .add("paying", Long.class)
                .add("score", Integer.class)
                .add("seq", Long.class)
        ;
        desc
                .addUiFunction("insert", null)
                .addUiFunction("search", "ScoreSetPageData")
                .addUiFunction("detail", null)
                .addUiFunction("edit", null)
                .addUiFunction("delete", null)
                .addUiFunction("switchPage", StringData.class.getName())
        ;
        desc.run("./");
    }
}
